<?
$stack = array("orange", "banana", "apple", "raspberry");
array_push($stack, "XXXX");
$fruit = array_pop($stack);
echo $fruit;
$fruit = array_pop($stack);
echo $fruit;
print_r($stack);
?>